package de.koo.grum.domain

class ContactData {
    String data
    String type
    User user
    static belongsTo = User

    static mapping = {
        table 'tbl_contact_data'
        user column:'user_id'
    }

    static constraints = {
        data(size:2..30,blank:false,unique:true)
        type(size:3..10,blank:false)
    }
}